package com.sunbird.crm.dao.sys;

import com.sunbird.crm.entity.sys.TRole;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface TRoleMapper {
    int deleteByPrimaryKey(Integer roleId);

    int insert(TRole record);

    int insertSelective(TRole record);

    TRole selectByPrimaryKey(Integer roleId);

    int updateByPrimaryKeySelective(TRole record);

    int updateByPrimaryKey(TRole record);

    //根据用户code 查询角色
    List<TRole> selectByUserCode(String UserCode);
}